'use strict';

const Service = require('egg').Service;

class HelloService extends Service {
  async getMessage() {
    try {
        
        return await this.app.model.Message.findAll();
    } catch (error) {
        return null;
    }
  }
}

module.exports = HelloService;
